import React, {Component} from 'react';
import styles from './index.module.css'
class FilterFoot extends Component {

    render() {
        const {onCancle,onOk} = this.props;
        // console.log(this.props);
        return (
            <div className={this.props.className}>
                <div className={styles.no} onClick={onCancle}>{this.props.onText}</div>
                <div className={styles.yes} onClick={onOk}>{this.props.children ? this.props.children : '确定'}</div>
            </div>
        );
    }
}

export default FilterFoot;
